<style>
    body{
        background:#f2f2f2!important;
    }
    .tabs{
        background: #fff;
        margin-top: 20px;
    }
    .tabs-content{
        display: flex;
        flex-direction: column-reverse;
        padding-top: 20px;
        width: 95%;
        margin: auto;
    }
    .tabs .col-sm-2{
        width: 100%;
        text-align: left;
    }
    .tab-label{
        width: 140px;
        text-align: center;
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        margin: 0;
    }
    .tab-label.active{
        background: #1E9FFF;
        color: #fff;
    }
    .tab-labels{
        /*padding: 10px;*/
        box-sizing: border-box;
        background: #e3eced;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }
    .tab-labels .xian {
        width: 8px;
        height: 20px;
        background: #18bc9c;
        margin-right: 10px;
        margin-left: 10px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="tabs">
        <div class="tab-labels">
            <div class="xian"></div>
            <label class="tab-label active" for="tab4">退费资料</label>
        </div>
        <div class="tabs-content">
            <div class="tab" style="min-height: 300px;">
                <div class="form-group">
                    <label for="c-file" class="control-label col-xs-12 col-sm-2">{:__('退费时间')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <?php if( $row['refund_time'] ){ ?>
                        <input class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refund_time]" type="text" value="{:date('Y-m-d H:i:s', $row['refund_time'])}">
                        <?php }else{ ?>
                        <input  class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refund_time]" type="text" value="{:date('Y-m-d H:i:s')}">
                        <?php } ?>

                    </div>
                </div>
                <div class="form-group">
                    <label for="c-file" class="control-label col-xs-12 col-sm-2">{:__('退费金额')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input  class="form-control" name="row[refund_money]" type="number" value="{$row.refund_money}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-file" class="control-label col-xs-12 col-sm-2">{:__('选择资料')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-file" class="form-control" size="35" name="row[file]" type="text" value="{$row.refund_img}">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                <span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-mimetype="image/*" data-multiple="true" style="background-color: #1b4fe7"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                            </div>
                            <span class="msg-box n-right"></span>
                        </div>
                        <ul class="row list-inline faupload-preview" id="p-file"></ul>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-file" class="control-label col-xs-12 col-sm-2">{:__('退费备注')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea  class="form-control" data-use-current="true" name="row[refund_beizhu]" type="text" rows="5">{$row.refund_beizhu}</textarea>
                    </div>
                </div>

            </div>

        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            </div>
        </div>
    </div>



</form>

<script src="/assets/libs/jquery/dist/jquery.js"></script>
